# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2024/3/24
desc: 
sample: 
"""
# 控制台模拟猜数字，比如数字为66，一直猜到正确为止
import random

number =random.randint(0,100)
print(number)

while True:
    number_put = input('请输入一个数字：')
    try:
        if int(number_put) == number:
            print('数字匹配')
            break
        else:
            print("数字不匹配")
    except:
        print("输入的不是整数，请从新输入")

